package com.leyou.user.inter.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zqq
 * @ClassName MenuVO
 * @Description
 * @date 2020/3/31-16:41
 */
@Data
@NoArgsConstructor
public class MenuVO {

    /** 权限id */
    @ApiModelProperty(value = "权限id", name = "id")
    private Long id;

    /** 权限图标 */
    @ApiModelProperty(value = "权限图标", name = "action")
    private String action;

    /** 权限名 */
    @ApiModelProperty(value = "权限名", name = "title")
    private String title;

    /** 权限路径 */
    @ApiModelProperty(value = "权限路径", name = "path")
    private String path;

    /** 二级菜单 */
    @ApiModelProperty(value = "二级菜单", name = "items")
    private List<MenuVO> items;

    public MenuVO(Long id, String action, String title, String path) {
        this.id = id;
        this.action = action;
        this.title = title;
        this.path = path;
    }
}
